<font color="#FFFFFF">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
	<tr>
    	<td valign="top" class="formtitle">Pagos Recibidos<hr /></td>
    </tr>
    <tr>
    	<td>
        <style type="text/css">
			@import url(../css/reports.css);
        </style>
<?php

	require "../classes/ReportesConsultas.php";
	
	$profile=get_object_vars(unserialize($_SESSION['userProfile']));
	$idHotel = $profile['data']['id_procedencia'];
	$reportes=new ReportesConsultas();
	$pagos = $reportes->getPagosAHotel($idHotel);

	echo "
		<table class='report' width='650' border='1'>
			<tr>
				<th class='formLabel' colspan='3' scope='col'>Reservaci&oacute;n</th>
				<th class='formLabel' colspan='7' scope='col'>Pago</th>
			<tr>
				<th class='formLabel' scope='col'>No. Reservaci&oacute;n</th>
				<th class='formLabel' scope='col'>Cliente</th>
				<th class='formLabel' scope='col'>Costo</th>
				<th class='formLabel' scope='col'>Fecha</th>
				<th class='formLabel' scope='col'>Banco</th>
				<th class='formLabel' scope='col'>Cuenta</th>
				<th class='formLabel' scope='col'>Concepto</th>
				<th class='formLabel' scope='col'>Factura</th>
				<th class='formLabel' scope='col'>Monto</th>
				<th class='formLabel' scope='col'>Saldo</th>				
			</tr>";

		foreach($pagos as $pagos){
//					<td nowrap='nowrap'>{$pagos['Fecha_Reservacion']}&nbsp;</td>
//					<td nowrap='nowrap'>{$pagos['Agencia']}&nbsp;</td>
			echo "
				<tr>
					<td align='center' nowrap='nowrap'>{$pagos['NoReservacion']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Cliente']}&nbsp;</td>
					<td nowrap='nowrap'>\${$pagos['Costo']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Fecha_Deposito']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Banco']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Cuenta']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Concepto']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Factura']}&nbsp;</td>
					<td nowrap='nowrap'>\${$pagos['Cantidad']}&nbsp;</td>
					<td nowrap='nowrap'>{$pagos['Saldo']}&nbsp;</td>
				</tr>";
		}
	echo "
	</table>";
?>
		</td>
	</tr>
</table>
</font>
